<?php
class Season_Model extends CI_Model {
    private $database;
    public function __construct() {
        parent::__construct();
        $this->database = $this->db->conn_id;
    }
    public function getAll() {
		$stmt = $this->database->prepare('CALL com_season_getall()');
		$stmt->execute();
		$result = $stmt->fetchAll();
		$arr = array();
		foreach($result as $row){
			 $arr = array($row['seasonid']=>$row['season_name']);
		}
		return isset($arr) ? $arr : null;
    }
}